package com.itboye.ihomebank.me;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.base.BaseOtherActivity;
import com.itboye.ihomebank.custom.RoundImageView;
import com.itboye.ihomebank.util.XImageLoader;
/**
 * 查看师傅
 *
 */
public class ActivityChaKanShiFu extends BaseOtherActivity{
	private ImageView close_icon;//返回图片
	private TextView add_shap_title_tv;//标题
	
	RoundImageView chakan_image;
	TextView chakan_name,chakan_phone;
	
	Intent intent;
	
	String head;
	String name;
	String phone;
	String id;
	
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.close_icon:
			finish();
			break;

		default:
			break;
		}

	}

	@Override
	protected int layout_id() {
		return R.layout.activity_chakan_shiu;
	}

	@Override
	protected void onInitController() {

	}

	@Override
	protected void onInit() {
		add_shap_title_tv.setText("师傅信息");
		
		intent=this.getIntent();
		if(intent!=null){
			head=intent.getStringExtra("head");
			name=intent.getStringExtra("name");
			phone=intent.getStringExtra("phone");
			id=intent.getStringExtra("id");
		}
		
		XImageLoader.load(head, chakan_image);
		
		chakan_name.setText(name);
		chakan_phone.setText(phone);

	}

	@Override
	protected void onReadIntent(Bundle bundle) {

	}
}
